import wiringpi as gpio

pin = 11
gpio.wiringPiSetupPhys()
gpio.pinMode(pin, gpio.INPUT)
gpio.pullUpDnControl(pin, gpio.PUD_DOWN)

while True:
  print(gpio.digitalRead(pin))

